]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Use correct monitor for fullscreen logic
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 9 Mar 2017 14:42:36 +0000 (15:42 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 10 Mar 2017 16:21:54 +0000 (17:21 +0100)
For most notifications, banners are suppressed while the monitor
that is used to display banners is in fullscreen. With the old
message tray at the bottom, this used to be the bottom-most monitor,
but nowadays it's always the primary one, so update the corresponding
code to use the correct monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=779819

js/ui/messageTray.js

index 32e3c4c766c7e85345c50f9e1b0377e1d15d91c2..0c7a5e4cdc75faf1cce1853ba06f06b22d25d158 100644 (file)
@@ -1231,7 +1231,7 @@ const MessageTray = new Lang.Class({
         if (this._notificationState == State.HIDDEN) {
             let nextNotification = this._notificationQueue[0] || null;
             if (hasNotifications && nextNotification) {
-                let limited = this._busy || Main.layoutManager.bottomMonitor.inFullscreen;
+                let limited = this._busy || Main.layoutManager.primaryMonitor.inFullscreen;
                 let showNextNotification = (!limited || nextNotification.forFeedback || nextNotification.urgency == Urgency.CRITICAL);
                 if (showNextNotification)
                     this._showNotification();